#include<stdio.h>
#include<conio.h>
#include<math.h>
int ktNguyento(int n){
	int dem = 0;
	for(int i=1; i<=n;i++){
		if((n % i)==0) dem = dem +1;
	}
	if(dem == 2) return 1;
	else return 0;
}
int main(){
   int n;
   printf("\nnhap vao 1 so n bat ky: ");
   scanf("%d",&n);
   int kq = ktNguyento(n);
   if(kq == 1) printf("\nso vua nhap la so nguyen to...");
   else printf("\nday khong phai la so nguyen to");
getch();
}

